<div class="n-row n-margin-default-top">
	<div class="n-col-5">
		<form method="post" action="taskSave.html">
		<div class="a-form">
		     <label class="n-col-2">任务名：</label>
		     <div class="n-col-10">
		          <input id="taskname" name="taskname" type="text" />
		     </div>
		</div>
		<div class="a-form">
		     <label class="n-col-2">agent：</label>
		     <div class="n-col-10">
		          <input id="agent" name="agent" type="text" />
		     </div>
		</div>
		<div class="a-form">
		     <label class="n-col-2">是否需要cookie：</label>
		     <div class="n-col-10">
		     	<input type="checkbox" value="1" id="needcookie" name="needcookie" checked/>
		     </div>
		</div>
		<div class="a-form">
		     <label class="n-col-2">cookie：</label>
		     <div class="n-col-10">
		          <input id="cookie" name="cookie" type="text" />
		     </div>
		</div>
		<div class="a-form">
		     <label class="n-col-2"></label>
		     <div class="n-col-10">
		          <input type="submit" value="提交"/>
		     </div>
		</div>
		</form>
	</div>
	<div class="n-col-7">
		<table class="a-table a-table-striped">
			<thead>
				<tr><th></th></tr>
			</thead>
			<tbody>
			<?php foreach ($data as $key => $value):
				$taskDetail = json_decode($value, true);?>
				<tr><td rowspan=3><?=$key?></td><td><?=$taskDetail['taskname']?></td></tr>
				<tr><td><?=$taskDetail['agent']?></td></tr>
				<tr><td><?=$taskDetail['cookie']?></td></tr>
			<?php endforeach;?>
			</tbody>
			<tfoot>
			<tr><th></th></tr>
			</tfoot>
		</table>
	</div>
</div>